<?php

namespace app\common\model;

use think\Model;

class Apply extends Model
{
    protected $pk = "id";
    protected $table ="apply";

    // 自动时间戳
    protected $autoWriteTimestamp = true;

    protected $createTime = 'applytime';
    protected $updateTime = 'shenhetime';

    // 获取器
    public function getStatusAttr($value){
        $status = ['0'=>'未审核','1'=>'审核未通过','2'=>'审核通过'];
        return $status[$value];

    }

}
